package cn.lpf.org.service.impl;

import cn.lpf.org.domain.Department;
import cn.lpf.org.mapper.DepartmentMapper;
import cn.lpf.org.service.IDepartmentService;
import cn.lpf.query.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DepartmentService implements IDepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> load() {
        return departmentMapper.loadAll();
    }

    @Override
    public void save(Department department) {
        departmentMapper.save(department);
    }

    @Override
    public void update(Department department) {
        departmentMapper.update(department);
    }

    @Override
    public void remove(Long id) {
        departmentMapper.remove(id);
    }

    @Override
    public List<Department> queryList(PageList query) {

        return null;
    }


}
